package io.renren.entity;

import com.alibaba.druid.sql.visitor.functions.Now;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 与会人
 *
 * @author 1
 * @email 1@2.com
 * @date 2021-09-16 23:31:36
 */
@Data
@TableName("participant")
public class ParticipantEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 会议申请记录id
     */
    private Long applicationId;
    /**
     * 与会人id
     */
    private Long participantId;
    /**
     * eslId
     */
    private String eslId;
    /**
     * 与会人姓名
     */
    private String name;
    /**
     * 与会人公司
     */
    private String comp;
    /**
     * 与会人职务
     */
    private String title;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    public static ParticipantEntity create(Long applicationId, String participant) {
        ParticipantEntity participantEntity = new ParticipantEntity();
        participantEntity.setApplicationId(applicationId);
        participantEntity.setName(participant);
        participantEntity.setCreateTime(new Date());
        participantEntity.setUpdateTime(new Date());
        return participantEntity;
    }

}
